]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionDownloader: Use uuid lookup method in checkForUpdates()
authorSebastian Keller <skeller@src.gnome.org>
Thu, 28 Nov 2019 13:06:12 +0000 (14:06 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 22 Jan 2020 16:08:11 +0000 (17:08 +0100)
The extensions variable the code was trying to access was made private
and turned into a map some time ago.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1958

js/ui/extensionDownloader.js

index e261573ab38a7fdf7e98f33f63baeae0c8c77429..466172528047c28e3cb545a22231e90826621db3 100644 (file)
@@ -154,7 +154,7 @@ function updateExtension(uuid) {
 function checkForUpdates() {
     let metadatas = {};
     Main.extensionManager.getUuids().forEach(uuid => {
-        metadatas[uuid] = Main.extensionManager.extensions[uuid].metadata;
+        metadatas[uuid] = Main.extensionManager.lookup(uuid).metadata;
     });
 
     let params = { shell_version: Config.PACKAGE_VERSION,